package com.ruoyi.appointments.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 预约管理对象 appointments
 * 
 * @author ruoyi
 * @date 2024-10-11
 */
public class Appointments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long appointmentId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String tenantName;

    /** 手机号 */
    @Excel(name = "手机号")
    private Long phoneNumber;

    /** 租客id */
    @Excel(name = "租客id")
    private Long tenantId;
    private String nickName;

    /** 房间 */
    @Excel(name = "房间")
    private Long roomId;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointmentTime;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    /** 预约状态 */
    @Excel(name = "预约状态")
    private String appointmentStatus;

    public void setAppointmentId(Long appointmentId) 
    {
        this.appointmentId = appointmentId;
    }

    public Long getAppointmentId() 
    {
        return appointmentId;
    }
    public void setTenantName(String tenantName) 
    {
        this.tenantName = tenantName;
    }

    public String getTenantName() 
    {
        return tenantName;
    }
    public void setPhoneNumber(Long phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public Long getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }
    public void setAppointmentTime(Date appointmentTime) 
    {
        this.appointmentTime = appointmentTime;
    }

    public Date getAppointmentTime() 
    {
        return appointmentTime;
    }
    public void setAppointmentStatus(String appointmentStatus) 
    {
        this.appointmentStatus = appointmentStatus;
    }

    public String getAppointmentStatus() 
    {
        return appointmentStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("appointmentId", getAppointmentId())
            .append("tenantName", getTenantName())
            .append("phoneNumber", getPhoneNumber())
            .append("tenantId", getTenantId())
            .append("roomId", getRoomId())
            .append("appointmentTime", getAppointmentTime())
            .append("appointmentStatus", getAppointmentStatus())
            .toString();
    }
}
